package com.xjggb.链表;

import java.util.UUID;

public class LinkedListTest {
    public static void main(String[] args) {


        SingleLinkedList<String> linkedList = new SingleLinkedList<String>();

        linkedList.add("小红");
        linkedList.add("小兰");
        linkedList.add("小强");
        linkedList.add(1,"阿强");
        linkedList.set(1,"光头强");

        System.out.println("linkedList.size() = " + linkedList.size());

        System.out.println("linkedList.remove(1) = " + linkedList.remove(1));


        System.out.println("linkedList.get(2) = " + linkedList.get(2));


        System.out.println("linkedList.toString() = " + linkedList.toString());



    }
}
